package me.boot.gen.table.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import me.boot.gen.table.annotation.ColumnComment;
import me.boot.gen.table.annotation.Index;
import me.boot.gen.table.annotation.Unique;


@Getter
@Setter
@TableName
public class SysTenant extends BaseEntity {

    @TableField
    @Index
    @ColumnComment("租户名称")
    private String name;

    @TableField
    @Unique
    @ColumnComment("租户代码")
    private String code;

    @ApiModelProperty("租户子域名")
    @TableField("sub_domain")
    private String subDomain;

    @ApiModelProperty(value = "数据源配置信息，json格式", notes = "当租户模式=DATASOURCE时，该字段生效")
    @TableField("ds_config")
    private String dsConfig;
}